package com.gimi.test_jpa.com.gimi.jpa.login;

import com.gimi.test_jpa.com.gimi.entity.login.Account;
import com.gimi.test_jpa.com.gimi.entity.wqy.CpTestEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface LonginJap extends JpaRepository<Account,String> {

    public Account findByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    public Account findByUsername(@Param("username") String username);
}
